/*
** FileName    : passcheck.c
** Author      : InCTF
** LastModified: 4 March 2010
** 
** Note: There is no use of reverse engineering :)
*/
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
//Adding custom header file
#include "header.h"

int main( int argc, char *argv[] ) {
    if (argc != 2 ){
        printf("error: Give only 1 input string\n");
        exit (EXIT_SUCCESS);
    }
    if ( strlen(argv[1]) != 5 ) {
        printf("error: The input string must be 5 characters!\n");
        exit (EXIT_SUCCESS);
    }
    char string[5];
    string[0] = 'a';
    string[1] = 'b';
    string[2] = 'c';
    string[3] = 'd';
    string[4] = 'e';
    string[5] = '\0';
    if ( strcmp(string, argv[1]) == 0 )
        printf("1");
    else
        printf("0");
    return(EXIT_SUCCESS);
}
